//
//  YYSeverModel.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/8/1.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYSeverModel.h"

@implementation YYSeverModel

+(NSDictionary *)JSONKeyPathsByPropertyKey
{
    /**自定义字段         网络字段**/
    return @{
             @"selid"      :   @"id",
             @"is_exchange"      :   @"is_exchange",
             @"seller_address"      :   @"seller_address",
             @"seller_img"      :   @"seller_img",
             @"seller_name"      :   @"seller_name",
             @"seller_phone"      :   @"seller_phone",
             @"name"      :   @"name",
             @"sum"      :   @"sum"
             };
}

+ (NSValueTransformer *)JSONTransformerForKey:(NSString *)key
{
    return [MTLValueTransformer transformerUsingReversibleBlock:^id(id value, BOOL *success, NSError *__autoreleasing *error) {
        return DEF_OBJECT_TO_STIRNG(value);
    }];
}

@end
